package org.jeecg.modules.demo.mall.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 商家商品信息表
 * @Author: jeecg-boot
 * @Date:   2023-10-25
 * @Version: V1.0
 */
@Data
@TableName("yx_merchant_store")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="yx_merchant_store对象", description="商家商品信息表")
public class YxMerchantStore implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**商家名称*/
	@Excel(name = "商家名称", width = 15)
    @ApiModelProperty(value = "商家名称")
    private String name;
	/**商品id*/
	@Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
    private Integer storeId;
	/**价格*/
	@Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "价格")
    private BigDecimal price;
	/**库存*/
	@Excel(name = "库存", width = 15)
    @ApiModelProperty(value = "库存")
    private Integer stock;
    /**删除状态*/
    @Excel(name = "删除状态", width = 15)
    @ApiModelProperty(value = "删除状态")
    @TableLogic
    private Integer isDel;
	/**商家id*/
	@Excel(name = "商家id", width = 15)
    @ApiModelProperty(value = "商家id")
    private String merchantId;
	/**上架状态 0-下架 1-上架*/
	@Excel(name = "上架状态 0-下架 1-上架", width = 15)
    @ApiModelProperty(value = "上架状态 0-下架 1-上架")
    private Integer status;

    /**销量*/
    @Excel(name = "销量", width = 15)
    @ApiModelProperty(value = "销量")
    private Integer sales;


    /**商家id*/
    @TableField(exist = false)
    private String merId;
    /**
     * 会员等级
     */
    @TableField(exist = false)
    private Integer levelId;
    /**
     * 会员价格
     */
    @TableField(exist = false)
    private BigDecimal levelPrice;

    /**商品id*/
    @TableField(exist = false)
    private String storeName;


    /**商品id*/
    @Excel(name = "游戏人数", width = 15)
    @ApiModelProperty(value = "游戏人数")
    private Integer personalNum;

}
